﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace AirLinq.Providers.Sql {
	public class SqlGroup : SqlNode{
		private readonly ReadOnlyCollection<SqlExpression> _list;
		public SqlGroup(ReadOnlyCollection<SqlExpression> list) {
			if (list == null) {
				throw new ArgumentNullException("list");
			}
			_list = list;
		}
		public ReadOnlyCollection<SqlExpression> GroupList {
			get {
				return _list;
			}
		}
		public override SqlNodeType NodeType {
			get {
				return SqlNodeType.Group;
			}
		}
	}
}
